/**
 * @author nuer
 * @time 20151227
 */
@import "./rule.scss";

.ui-helper-hidden {
	display: none;
}
.ui-helper-hidden-accessible {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
.ui-helper-reset {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	line-height: 1.3;
	text-decoration: none;
	font-size: 100%;
	list-style: none;
}
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
	content: "";
	display: table;
	border-collapse: collapse;
}
.ui-helper-clearfix:after {
	clear: both;
}
.ui-helper-clearfix {
	min-height: 0; /* support: IE7 */
}
.ui-helper-zfix {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	opacity: 0;
	filter:Alpha(Opacity=0); /* support: IE8 */
}

.ui-front {
	z-index: 100;
}


/* Interaction Cues
----------------------------------*/
.ui-state-disabled {
	cursor: default !important;
}


/* Icons
----------------------------------*/

/* states and images */
.ui-icon {
	display: block;
	text-indent: -99999px;
	overflow: hidden;
	background-repeat: no-repeat;
}


/* Misc visuals
----------------------------------*/

/* Overlays */
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


.ui-dialog {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0;
	outline: 0;
	border: 0px solid #CFCECE!important;
	border-radius: 0px!important;
	@include fis-box-shadow(1px 1px 3px #cacaca);
	.ui-dialog-titlebar {
		text-indent: 10px;
		position: relative;
		height: 44px;
		border-radius: 0px;
		border: 0px;
		background-color: $color-light-gray;
		border-bottom: 1px solid #e0e0e0;
		.ui-dialog-title {
			@include fis-inline-block;
			line-height: 44px;
			font-size: 16px;
			font-weight: normal;
			width: 90%;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			color: #1a1a1a;
		}
	}
	.ui-dialog-titlebar-close{
		position: absolute;
		right: 10px;
		top: 50%;
		margin-top: -13px;
		width: 25px;
		height: 25px;
		background-image: url(./img/x.png?__sprite);
		background-repeat: no-repeat;
		&, &.ui-state-hover{
			border: 0px;
			background-color: transparent;
		}
	}
}

.ui-dialog .ui-button-icon-primary{
	width: 25px;
	height: 25px;
	overflow: hidden;
}
/* .ui-dialog .ui-dialog-titlebar .ui-state-hover {
	background-image: url(./img/x-hover.png?__sprite);
} */
.ui-dialog .ui-dialog-content {
	position: relative;
	border: 0;
	padding: 5px 20px;
	background: none;
	overflow: auto;
}
.ui-dialog .ui-dialog-buttonpane {
	text-align: left;
	border: 0;
	padding: 10px 30px;
	border-top: 1px solid #f1f4f9;
}

.ui-dialog .ui-dialog-buttonpane button {
	cursor: pointer;
	height: 32px;
	border: 1px solid #45ad00;
    background: #45ad00;
    color: #fff;
	font-family: 'Microsoft Yahei';
	@include fis-border-radius(2px);
}
.ui-dialog .ui-dialog-buttonpane button.ui-state-hover {
	border-color: #45a500;
	background-color: #3e9a00;
	@include fis-gradient-vertical(#4ab200, #3e9a00);
}

.ui-dialog .ui-dialog-buttonpane .ui-button-text {
	padding: 0 15px;
	font-size: 15px;
	line-height: 32px;
}
.ui-dialog .ui-resizable-se {
	width: 12px;
	height: 12px;
	right: -5px;
	bottom: -5px;
	background-position: 16px 16px;
}
.ui-draggable .ui-dialog-titlebar {
	cursor: move;
}



.ui-button {
	display: inline-block;
	position: relative;
	padding: 0;
	line-height: normal;
	margin-right: .1em;
	cursor: pointer;
	vertical-align: middle;
	text-align: center;
	outline: none;
	overflow: visible; /* removes extra width in IE */
}
.ui-button,
.ui-button:link,
.ui-button:visited,
.ui-button:hover,
.ui-button:active {
	text-decoration: none;
}
/* to make room for the icon, a width needs to be set here */
.ui-button-icon-only {
	width: 2.2em;
}
/* button elements seem to need a little more width */
button.ui-button-icon-only {
	width: 2.4em;
}
.ui-button-icons-only {
	width: 3.4em;
}
button.ui-button-icons-only {
	width: 3.7em;
}

/* button text element */
.ui-button .ui-button-text {
	display: block;
	line-height: normal;
}
.ui-button-text-only .ui-button-text {
	padding: .4em 1em;
}
.ui-button-icon-only .ui-button-text,
.ui-button-icons-only .ui-button-text {
	padding: .4em;
	text-indent: -9999999px;
}
.ui-button-text-icon-primary .ui-button-text,
.ui-button-text-icons .ui-button-text {
	padding: .4em 1em .4em 2.1em;
}
.ui-button-text-icon-secondary .ui-button-text,
.ui-button-text-icons .ui-button-text {
	padding: .4em 2.1em .4em 1em;
}
.ui-button-text-icons .ui-button-text {
	padding-left: 2.1em;
	padding-right: 2.1em;
}
/* no icon support for input elements, provide padding by default */
input.ui-button {
	padding: .4em 1em;
}

/* button icon element(s) */
.ui-button-icon-only .ui-icon,
.ui-button-text-icon-primary .ui-icon,
.ui-button-text-icon-secondary .ui-icon,
.ui-button-text-icons .ui-icon,
.ui-button-icons-only .ui-icon {
	position: absolute;
	top: 50%;
	margin-top: -8px;
}
.ui-button-icon-only .ui-icon {
	left: 50%;
	margin-left: -8px;
}
.ui-button-text-icon-primary .ui-button-icon-primary,
.ui-button-text-icons .ui-button-icon-primary,
.ui-button-icons-only .ui-button-icon-primary {
	left: .5em;
}
.ui-button-text-icon-secondary .ui-button-icon-secondary,
.ui-button-text-icons .ui-button-icon-secondary,
.ui-button-icons-only .ui-button-icon-secondary {
	right: .5em;
}

/* button sets */
.ui-buttonset {
	margin-right: 7px;
}
.ui-buttonset .ui-button {
	margin-left: 0;
	margin-right: -.3em;
}

/* workarounds */
/* reset extra padding in Firefox, see h5bp.com/l */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
	border: 0;
	padding: 0;
}

.ui-tooltip {
	position: absolute;
	z-index: 1000;
}

/* theme.less */
/* Component containers
----------------------------------*/
.ui-widget {
	/* font-family: Verdana,Arial,sans-serif; */
	font-size: 1.1em;
	.ui-widget {
		font-size: 1em;
	}
	input,
	select,
	textarea,
	button {
		/* font-family: Verdana,Arial,sans-serif; */
		font-size: 1em;
	}
}
.ui-widget-content {
	border: 1px solid #aaaaaa;
	background-color: #ffffff;
	color: #222222;
	a {
		color: #222222;
	}
}
.ui-widget-header {
	border: 1px solid #aaaaaa;
	background-color: #cccccc;
	color: #222222;
	font-weight: bold;
	a {
		color: #222222;
	}
}


.ui-state-hover, .ui-state-focus{
	a, a:hover, a:link, a:visited{
		color: #212121;
		text-decoration: none;
	}
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
	border: 1px solid #aaaaaa;
	background-color: #ffffff;
	font-weight: normal;
	color: #212121;
}
.ui-state-active {
	a, a:link, a:visited {
		color: #212121;
		text-decoration: none;
	}
}
/* Interaction Cues
----------------------------------*/
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
	border: 1px solid #fcefa1;
	background-color: #fbf9ee;
	color: #363636;
}
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
	color: #363636;
}
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
	border: 1px solid #cd0a0a;
	background-color: #fef1ec;
	color: #cd0a0a;
}
.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
	color: #cd0a0a;
}
.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
	color: #cd0a0a;
}
.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
	font-weight: bold;
}
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
	opacity: .7;
	filter:Alpha(Opacity=70); /* support: IE8 */
	font-weight: normal;
}
.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
	opacity: .35;
	filter:Alpha(Opacity=35); /* support: IE8 */
	background-image: none;
}
.ui-state-disabled .ui-icon {
	filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
}

/* Corner radius */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
	border-top-left-radius: 4px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
	border-top-right-radius: 4px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
	border-bottom-left-radius: 4px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
	border-bottom-right-radius: 4px;
}

/* Overlays */
.ui-widget-overlay {
	background-color: #000;
	@include fis-opacity(30);
}
.ui-widget-shadow {
	margin: -8px;
	padding: 8px;
	background-color: #aaaaaa;
	@include fis-opacity(30);
	border-radius: 8px;
}




/* slider.less */
.ui-slider {
	position: relative;
	text-align: left;
	border: 0px;
	background-image: -webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);
    background-image: -o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));
    background-image: linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
    background-repeat: repeat-x;
    background-color: #f5f5f5;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
	.ui-slider-handle {
		position: absolute;
		z-index: 2;
		width: 1.2em;
		height: 1.2em;
		cursor: default;
		-ms-touch-action: none;
		touch-action: none;
		outline: 0;
		border: 1px solid #aaa;
		background-color: #fff;
		font-weight: 400;
		color: #212121;
	}
	.ui-slider-range {
		position: absolute;
		z-index: 1;
		font-size: .7em;
		display: block;
		border: 0;
		background-position: 0 0;
	}
	/* support: IE8 - See #6727 */
	&.ui-state-disabled {
		.ui-slider-handle, .ui-slider-range {
			filter: inherit;
		}
	}
}

.ui-slider-horizontal {
	height: .8em;
	.ui-slider-handle {
		top: -.3em;
		margin-left: -.6em;
	}
	.ui-slider-range {
		top: 0;
		height: 100%;
	}
	.ui-slider-range-min {
		left: 0;
	}
	.ui-slider-range-max {
		right: 0;
	}
}

.ui-slider-vertical {
	width: .8em;
	height: 100px;
	.ui-slider-handle {
		left: -.3em;
		margin-left: 0;
		margin-bottom: -.6em;
	}
	.ui-slider-range {
		left: 0;
		width: 100%;
	}
	.ui-slider-range-min {
		bottom: 0;
	}
	.ui-slider-range-max {
		top: 0;
	}
}


/* selectmenu */
.ui-selectmenu-menu {
	padding: 0;
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	.ui-widget-content{
		border: 1px solid #d3d3d3;
	}
	.ui-selectmenu-quick{
		margin-top: -2px;
		background-color: #fff;
		border-left: 1px solid #d3d3d3;
		border-right: 1px solid #d3d3d3;
		padding: 3px 4px;
		white-space: nowrap;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline;
		zoom: 1;
		input{
			margin: 1px 0;
			padding: 4px 20px 4px 5px;
			width: 100%;
			height: auto;
			outline: 0;
			border: 1px solid #aaa;
			font-size: 1em;
			font-family: sans-serif;
			line-height: normal;
			-webkit-box-sizing: border-box;
			-moz-box-sizing: border-box;
			box-sizing: border-box;
			background: url(./img/i-search.png) no-repeat 98% 5px;
		}
	}
	.ui-menu .ui-menu-item{
		color: $color-gray;
		font-size: $font-normal;
		padding: 0 12px;
		line-height: 36px;
		cursor: default;
	}
	.ui-menu {
		overflow: auto;
		/* Support: IE7 */
		overflow-x: hidden;
		border-top: 0px;
		max-height: 265px;
		.ui-selectmenu-optgroup {
			font-size: 1em;
			font-weight: bold;
			line-height: 1.5;
			padding: 2px 0.4em;
			margin: 0.5em 0 0 0;
			height: auto;
			border: 0;
		}
		.ui-state-focus{
			// background-color: #f1f1f1;
			color: $color-blue;
			border: 0px;
		}
	}
}
.ui-selectmenu-open {
	display: block;
}
.ui-corner-top {
	span.ui-icon{
		/* @include fis-arrow(#b2bfd9, 0px 4px 4px 4px, transparent transparent #b2bfd9 transparent);
		@include fis-rotate; */
		background-image: url(./img/ico-select/ico-up.png?__sprite);
	}
}
.ui-selectmenu-button {
	display: inline-block;
/*	overflow: hidden; */
	position: relative;
	text-decoration: none;
	cursor: pointer;
	vertical-align: middle;
	background-color: $color-light-gray;
	border: 1px solid #d3d3d3;
	outline: 0;
	border-radius: 2px;
	.ui-icon {
		left: auto;
		position: absolute;
		top: 50%;
		@include fis-icon-rect(14px, 9px);
		background-image: url(./img/ico-select/ico-down.png?__sprite);
		// @include fis-arrow(#b2bfd9, 4px 4px 0px 4px, #b2bfd9 transparent transparent transparent);
		right: 12px;
		margin-top: -4px;
	}
	span.ui-selectmenu-text {
		text-align: left;
		// padding: 0.4em 2.1em 0.4em 1em;
		padding: 0 36px 0 12px;
		display: block;
		// line-height: 1.4;
		line-height: 36px;

		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		background-color: $color-light-gray;
		// color: #252e44;
		color: $color-black;
		// font-size: 14px;
		font-size: $font-normal;
	}
}


